package com.am.lottery.view.home

import androidx.compose.foundation.layout.Column
import androidx.compose.material.Text
import androidx.compose.material3.Button
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableIntStateOf
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.runtime.setValue
import cafe.adriel.voyager.core.screen.Screen

object HomeView : Screen {
    private fun readResolve(): Any = HomeView

    @Composable
    override fun Content() {
        var count by rememberSaveable { mutableIntStateOf(1) }
        Column {

            Button(
                onClick = {
                    count++
                }
            ) {
                Text("+")
            }
            Text("HomeView : $count")
        }
    }
}